package net.wanho.shop.service;

import com.alibaba.fastjson.JSONArray;
import com.github.pagehelper.PageInfo;
import net.wanho.shop.dto.AddressDTO;
import net.wanho.shop.dto.OrderDTO;
import net.wanho.shop.po.Order;
import net.wanho.shop.vo.OrderDetailVO;
import net.wanho.shop.vo.PageVo;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */
public interface OrderService {
    PageInfo findPage(int pageNum, int pageSize, Order order);

    List<OrderDetailVO> findById(Integer orderId);

    void add(Order order);

    void modify(Integer orderId, Integer status);

    void removeById(Serializable orderId);


    PageVo findAll(int pageNum, int pageSize, OrderDTO orderDTO);

    void send(Integer orderId, String no);

    void changeAddress(Integer orderId, AddressDTO address);

    JSONArray findLogistics(String no);

    void reminder(Integer orderId);

    void updateOrderStatus(String orderNumber);
}
